//
//  CCDChooseButtonCell.m
//  operativeSide
//
//  Created by 王春程 on 16/5/18.
//  Copyright © 2016年 com.caocaod.www. All rights reserved.
//

#import "CCDChooseButtonCell.h"
#import "Masonry.h"

@interface CCDChooseButtonCell()


@end
@implementation CCDChooseButtonCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    if(self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        WS(ws);
        
        _titleLabel = [[UILabel alloc] init];
        _titleLabel.font = [UIFont systemFontOfSize:15];
        _titleLabel.textAlignment = NSTextAlignmentCenter;
        [self.contentView addSubview:self.titleLabel];
        [_titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.mas_equalTo(ws.contentView.mas_left);
            make.right.mas_equalTo(ws.contentView.mas_right);
            make.top.mas_equalTo(ws.contentView.mas_top).offset(5);
            make.height.mas_equalTo(15);
        }];
        
        
//        UILabel *lineLabel = [[UILabel alloc] init];
//        lineLabel.backgroundColor = [UIColor grayColor];
//        lineLabel.alpha = 0.3;
//        [self.contentView addSubview:lineLabel];
//        [lineLabel mas_makeConstraints:^(MASConstraintMaker *make) {
//            make.left.mas_equalTo(ws.contentView.mas_left);
//            make.right.mas_equalTo(ws.contentView.mas_right);
//            make.top.mas_equalTo(ws.titleLabel.mas_bottom).offset(4);
//            make.height.mas_equalTo(0.5);
//        }];
//        
//        
        [self setSelectionStyle:UITableViewCellSelectionStyleNone];
    }
    return self;
}

@end

